import {iMicroApp} from "@peryl/micro-web";
import {applyAppConfig} from "./app.config";
import {createMicroApp} from "./micro/createMicroApp";
import {LoginService} from "./common/LoginService";

export const microApp: iMicroApp = createMicroApp({
  getToken: () => LoginService.getToken(),
  logout: (defaultLogout) => {
    LoginService.clear();
    defaultLogout();
  },
});

applyAppConfig(microApp);

console.warn({ microApp });
